#!/bin/bash

INSTALL_PATH=/home/content/w/e/e/weeraman/html/codekadiya_puzzles/demo/supertain
DB_HOST=supertain.db.3664059.hostedresource.com
DB_USER=supertain
DB_PASS=SuperDuper8!
DB_NAME=supertain

##############################################################################################

BACKUP_DIR=/tmp/supertain-backup
mkdir $BACKUP_DIR
cd $BACKUP_DIR
mysqldump -h$DB_HOST -u$DB_USER -p$DB_PASS $DB_NAME > data.sql
cp $INSTALL_PATH/web/uploads .
tar cvzf supertain-backup.tgz *